﻿/**
 *
 * @title: Basic MVC Framework, Controller Class
  * @author: 
 * @license: 
 * @updated: 29/07/2010
 *
 * @version	1.0 
 */

package com.mediagallary.controller
{
	
	import com.mediagallary.model.*;
	//import com.mediagallary.view.*;
	
	import flash.events.Event;
	
	public class Controller
	{
		private var _model:Model;
		//private var _view:View;
		
		
		public function Controller(m:Model)
		{
			model = m;
		}

		
		public function set model(m:Model):void{
			_model = m;
		}
		
		public function get model():Model{
			return _model;
		}
		
		public function currectMediaItem(event:Event = null):void
		{
			model.setCurrectMediaItem(1);
		}
		
	}
}

